{% extends "layout.html" %}

{% block header -%}
{{ super() }}
<hr/>
<script>
  function autoLink(className) {
    var comments = document.querySelectorAll(className);
    for(var i = 0; i < comments.length; i++) {
      comments[i].innerHTML = comments[i].innerHTML.replace(/http:\/\/[^ \t\n<]*/g, '<a href="$&">$&</a>');
    }
  }

  window.onload = function() {
    autoLink('.DevComment');
  }
</script>

<div class="Announcement">

<iframe width="100%" height="44" frameborder="0" scrolling="no" src="https://dart-status.appspot.com/current"></iframe>


<center style="padding: 0 7px">
  <table width="100%" valign="top" bgcolor="#efefef" style="-webkit-border-bottom-left-radius: 24px; -webkit-border-bottom-right-radius: 24px; -moz-border-bottom-right-radius: 24px; -moz-border-bottom-right-radius: 24px;   box-shadow: 2px 2px 6px rgba(0,0,0,0.6); -moz-box-shadow: 2px 2px 6px rgba(0,0,0,0.6); -webkit-box-shadow: 2px 2px 6px rgba(0,0,0,0.6);">
    <tr>
      <td width="23%">
        <table valign="top" width="100%">
          <tr>
            <td style="text-align: right;">
              <b>Status controls:</b>
            </td>
            <td>
              <a href="https://dart-status.appspot.com">Tree status edit</a>
            </td>
          </tr>
          <tr>
            <td style="text-align: right;">
              <b>Controls:</b>
            </td>
            <td>
              <a href="one_line_per_build">manage all</a>
            </td>
          </tr>
          <tr>
            <td style="text-align: right;">
               <b>Navigate:</b>
            </td>
            <td colspan="2">
              <a href="http://dev.chromium.org/developers/testing/chromium-build-infrastructure/tour-of-the-chromium-buildbot">about</a> |
              <a href="./waterfall/help">customize</a> |
              <a href="./waterfall">waterfall</a> |
              <a href="./waterfall?show_events=true&failures_only=true">failures</a> |
              <a href="./console">console</a> |
              <a href="https://build.chromium.org/p/client.dart.fyi/console">FYI console</a>
            </td>
          </tr>
        </table>
      </td>
      <td width="1" bgcolor="#CCCCCC">
      </td>
      <td width="2%">
      </td>
      <td width="72%">
        <table width="100%">
          <script language="javascript">
            var raw_flavors = [
              ["vm", [
                "vm-mac-debug-ia32-be",
                "vm-mac-debug-x64-be",
                "vm-mac-release-ia32-be",
                "vm-mac-release-x64-be",
                "vm-linux-debug-ia32-be",
                "vm-linux-debug--x64-be",
                "vm-linux-release-ia32-be",
                "vm-linux-release-x64-be",
                "vm-linux-release-optcounter-threshold-be",
                "vm-mips-sim-debug-be",
                "vm-mips-sim-release-be",
                "vm-arm-sim-debug-be",
                "vm-arm-sim-release-be",
                "vm-win32-debug-be",
                "vm-win32-release-be",
                "vm-win32-debug-russian-be",
                "cross-arm-vm-linux-release-be",
                "target-arm-vm-linux-release-be",
              ]],
              ["dart2js", [
                "dart2js-linux-release-minified-1-5-be",
                "dart2js-linux-release-minified-2-5-be",
                "dart2js-linux-release-minified-3-5-be",
                "dart2js-linux-release-minified-4-5-be",
                "dart2js-linux-release-minified-5-5-be",
                "dart2js-linux-release-checked-1-5-be",
                "dart2js-linux-release-checked-2-5-be",
                "dart2js-linux-release-checked-3-5-be",
                "dart2js-linux-release-checked-4-5-be",
                "dart2js-linux-release-checked-5-5-be",
              ]],
              ["dart-editor", [
                "dart-editor-be",
                "dart-editor-win-be",
                "dart-editor-mac-be",
                "dart-editor-linux-be",
                "new_analyzer-linux-release-be",
              ]],
              ["dartium", [
                "dartium-mac-full-be",
                "dartium-mac-inc-be",
                "dartium-mac-debug-be",
                "dartium-lucid64-full-be",
                "dartium-lucid64-inc-be",
                "dartium-lucid64-debug-be",
                "dartium-win-full-be",
                "dartium-win-inc-be",
                "dartium-win-debug-be",
              ]],
            ];
            var flavors = [];
            for(var i in raw_flavors) {
              var row = Array();
              for(var j in raw_flavors[i][1]) {
                row.push("builder=" + raw_flavors[i][1][j]);
              }
              flavors.push([raw_flavors[i][0], row.join("&")]);
            }

            var bar = "./horizontal_one_box_per_builder"
            var waterfall = "./waterfall"

            function GetUrl(type, content) {
              return type + "?" + content + "&reload=30";
            }

            function DisplayBar(content, name) {
              document.write("<tr><td><a href='" + GetUrl(waterfall, content) + "'>" + name + "</a></td><td width='99%'><iframe width='100%' height='20' frameborder='0' scrolling='no' src='" + GetUrl(bar, content) + "'></iframe></td></tr>\n");
            }

            for(var i in flavors) {
              DisplayBar(flavors[i][1], flavors[i][0]);
            }
          </script>
        </table>
        </td></tr></table>
      </td>
      <td width="3%">
      </td>
    </tr>
  </table>
</center>

</div>
{% endblock header %}

{% block footer %}

{{ super() }}
{# <p>Debug info: {{ debuginfo }}</p> #}
{% endblock %}
